import Vue from 'vue'
import Vuex from 'vuex'
import moduleCart from './cart.js'
import moduleUser from './user.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules:{
    'm_cart': moduleCart,
    //挂载用户的vuex模块，访问路径为m_user
    'm_user': moduleUser
  }
})
export default store